package com.demo.model;

import java.io.Serializable;

public class User implements Serializable {
    private String UserName;
    private Integer warnCount;

    public User(String userName, Integer warnCount) {
        UserName = userName;
        this.warnCount = warnCount;
    }

    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public Integer getWarnCount() {
        return warnCount;
    }

    public void setWarnCount(Integer warnCount) {
        this.warnCount = warnCount;
    }

    @Override
    public String toString() {
        return "User{" +
                "UserName='" + UserName + '\'' +
                ", warnCount=" + warnCount +
                '}';
    }
}

